/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package  com.fenxiangle.yueding.feature.focus.contract;

import com.fenxiangle.yueding.entity.bo.FoucsListBo;
import com.fenxiangle.yueding.entity.bo.MsgBo;
import com.fenxiangle.yueding.entity.bo.PageBo;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface MsgContract {

    interface Model {


        Observable<List<MsgBo>> getMsgList(PageBo pageBo);

    }

    interface View extends BaseView {


        void showMsgListSuccess(List<MsgBo> workBoPageData);

        void showMsgListError(String error);

        void showMsgListMoreSuccess(List<MsgBo> msg);

        void showMsgListMoreError(String msg);

        void showMsgListEmpty();
    }


    interface Presenter extends BasePresenter {

        void getMsgList(
                int pageIndex,
                int pageSize,
                Integer type
        );

        void getMsgListMore(

                int pageIndex,
                int pageSize,
                Integer type
        );
    }
}
